package com.jeeplus.modules.sys.entity;

import com.jeeplus.core.persistence.TreeEntity;

/**
 * @title: Platform
 * @projectName jeeplus
 * @description: TODO
 * @author Administrator
 * @date 2019/7/269:43
 */

public class Platform extends TreeEntity<Platform> {
 private static final long serialVersionUID = 1L;


 public Platform() {
  super();
 }

 public Platform(String id){
  super(id);
 }

 public Platform getParent() {
  return parent;
 }

 @Override
 public void setParent(Platform parent) {
  this.parent = parent;

 }

 public String getParentId() {
  return parent != null && parent.getId() != null ? parent.getId() : "0";
 }
}
